package com.skhu.as.service;

import java.util.List;

import com.skhu.as.dao.WorkerD;
import com.skhu.as.domain.Worker;

public class WorkerS {

	private WorkerD workerD;

	public void setWorkerD(WorkerD workerD) {
		this.workerD = workerD;
	}
	
	public List<Worker> getWorkerList(){
		return workerD.getWorkerList();
	}

	public int getWorkerMaxNo(){
		return workerD.getWorkerMaxNo();
	}
	
	public int deleteWorker(int workerNo){
		return workerD.deleteWorker(workerNo);
	}
	
	public int insertWorker(Worker worker){
		return workerD.insertWorker(worker);
	}
	
}
